<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Insert title here</title>
    <link rel="stylesheet" type="text/css" href="/Public/css/admin.css" /> 
    <style type="text/css">
        td{background: #fff;}
    </style>
</head>
<body>
    <div id="bds">

        <span style="width:1200px; height: 60px; display: block; line-height: 60px; text-align:center; font-size: 40px; font-weight: bold; font-family:微软雅黑; letter-spacing: 5px;background-color: #e1e1e1;">
            帮助列表
        </span>
        <div style="overflow: hidden;height: 30px;line-height: 30px;background: #fafafa;margin: 10px 0 10px 0">
            <form name="searchai" action="__URL__/" method="POST">
                <input type="text" name="key" style="height: 20px;" value="<?php echo ($key); ?>">
                <input type="submit" value="搜索" class="sub" style="width: 68px;height: 24px;border: 1px solid #999;background: #fff;cursor: pointer;">
            </form>
        </div>
        <table class="tables" border="0" cellpadding="0" cellspacing="1" style=" width: 1200px;border-top: 0px solid #e1e1e1; background: #000;">
            <tr>
                <td width="150px" height="30px">序号</td>
                <td width="300px" >上级菜单</td>     
                <td width="500px" >帮助菜单</td>
                <td width="300px" >管理</td>
            </tr>
            <?php if(is_array($list)): foreach($list as $k=>$l): ?><tr id="li<?php echo ($l["Id"]); ?>">
                    <td height="30px" ><?php echo ($l["Id"]); ?></td>
                    <td><?php if($l["pid"] == 0): ?>顶级<?php else: ?>顶级 >> <?php echo ($menu["$k"]); endif; ?></td>
                <td><?php echo ($l["menu"]); ?></td>
                <td>
                    <a href="__ROOT__/index.php/Help/index/id/<?php echo ($l["Id"]); ?>">查看</a>
                    <a href="__URL__/edit/id/<?php echo ($l["Id"]); ?>">编辑</a>
                    <a href="__URL__/del/id/<?php echo ($l["Id"]); ?>">删除</a>
                </td>
                </tr><?php endforeach; endif; ?>

        </table>

    </div>
    <?php echo ($page); ?>
</body>
</html>